﻿<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%--
 *  File:    VisitPlanFrm.jsp
 *  @Author: Kentzhong 
 *  Date:    2009-10-9 9:43:16
 *
 *  Copyright (C) 2000 - 2009 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%
  	String strModuleName = "SFE";
  	String privilegeCode = "H0255,H0256";
%>
<%@ page import="java.util.*" %>

<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<% 
	java.util.HashMap userInfo = (java.util.HashMap)session.getAttribute("userinfo");    
%>
<%
  String strIsBack="";
  String strRightURL="";
  if(request.getParameter("isback")==null)
    strRightURL="Blank.jsp?"+ OvalTools.randomURL() ;
  else
  {
    strIsBack="Y";
    strRightURL="VistPlanSummary.jsp?"+ OvalTools.randomURL() ;
    if(request.getParameter("orgid")!=null)
      strRightURL+="&orgid="+request.getParameter("orgid");
    else
      strRightURL+="&orgid="+userInfo.get("orgid");  
   if(request.getParameter("areaid")!=null)  
      strRightURL+="&areaid="+request.getParameter("areaid");
   if(request.getParameter("contactid")!=null)  
     strRightURL+="&contactid="+request.getParameter("contactid");
   
  } 
  session.setAttribute("isback",strIsBack) ;
  String isHistoryURL="&ishistory=N";
  if(request.getParameter("ishistory")!=null)  
  	isHistoryURL="&ishistory="+request.getParameter("ishistory");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

<frameset rows="29,646" frameborder="NO" border="0" framespacing="0" cols="786*"> 
  <frame name="topFrame" scrolling="NO" border="1" noresize src="VisitPlanTop.jsp?<%= OvalTools.randomURL() %>&languagecode=<%=JspHelper.filterNull( strFrmLanguageCode )%>" >
  <frameset id="downframesetid" cols="250,72%" frameborder="NO" border="0" framespacing="0" rows="*"> 
    <frame name="leftFrame" scrolling="NO" border="0" noresize src="VisitPlanContactTree.jsp?fromvisitplan=Y<%=isHistoryURL%>&languagecode=<%=JspHelper.filterNull( strFrmLanguageCode )%>&orgid=<%=JspHelper.filterNull( userInfo.get("orgid") )%>&userid=<%=JspHelper.filterNull( userInfo.get("userid") )%>&<%= OvalTools.randomURL() %>" mainFrame>
    <frame name="rightFrame" scrolling="auto" border="0" src="<%=JspHelper.filterNull(strRightURL)%>">
  </frameset>
</frameset>
<noframes>
</noframes>
<body>
</body>
</html>



